package com.warom.sdg.dto;

/**
 * 阈值更新数据传输对象
 * 用于接收前端传来的阈值更新请求
 */
public class ThresholdUpdateDto {
    private String paramType;
    private double minValue;
    private double maxValue;
    private String unit;

    // 构造函数
    public ThresholdUpdateDto() {
    }

    public ThresholdUpdateDto(String paramType, double minValue, double maxValue, String unit) {
        this.paramType = paramType;
        this.minValue = minValue;
        this.maxValue = maxValue;
        this.unit = unit;
    }

    // Getters and Setters
    public String getParamType() {
        return paramType;
    }

    public void setParamType(String paramType) {
        this.paramType = paramType;
    }

    public double getMinValue() {
        return minValue;
    }

    public void setMinValue(double minValue) {
        this.minValue = minValue;
    }

    public double getMaxValue() {
        return maxValue;
    }

    public void setMaxValue(double maxValue) {
        this.maxValue = maxValue;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    @Override
    public String toString() {
        return "ThresholdUpdateDto{" +
                "paramType='" + paramType + '\'' +
                ", minValue=" + minValue +
                ", maxValue=" + maxValue +
                ", unit='" + unit + '\'' +
                '}';
    }
} 